ga.view.appstate.menu
Class MenuState
java.lang.Object
com.jme3.app.state.AbstractAppState
ga.view.appstate.RootNodeState
ga.view.appstate.SceneState
ga.view.appstate.menu.MenuState
- All Implemented Interfaces:
- com.jme3.app.state.AppState
public class MenuState
- extends SceneState
App state for the main menu.
- Since:
- 12.08.2012
- Author:
- Stephan Dreyer
Fields inherited from class com.jme3.app.state.AbstractAppState |
initialized |
Method Summary |
private com.jme3.collision.CollisionResults |
findPick(com.jme3.scene.Node node)
Finds spatials in the scene that has been clicked. |
void |
initialize(com.jme3.app.state.AppStateManager stateManager,
com.jme3.app.Application app)
|
void |
setEnabled(boolean enabled)
|
Methods inherited from class com.jme3.app.state.AbstractAppState |
isEnabled, isInitialized, postRender, render, stateAttached, stateDetached |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LOGGER
private static final java.util.logging.Logger LOGGER
doubleClickListener
private MenuState.MenuMouseListener doubleClickListener
listener
private final MenuListener listener
menuNodes
private final java.util.List<MenuState.MenuNode> menuNodes
viewSettings
private final ViewSettings viewSettings
MenuState
public MenuState(MenuListener listener,
ViewSettings viewSettings)
- Instantiates a new menu state.
- Parameters:
listener
- the listenerviewSettings
- the view settings
initialize
public void initialize(com.jme3.app.state.AppStateManager stateManager,
com.jme3.app.Application app)
- Specified by:
initialize
in interface com.jme3.app.state.AppState
- Overrides:
initialize
in class SceneState
findPick
private com.jme3.collision.CollisionResults findPick(com.jme3.scene.Node node)
- Finds spatials in the scene that has been clicked.
- Parameters:
node
- The parent node to check for clicks.
- Returns:
- The results of the click.
- Since:
- 12.08.2012
setEnabled
public void setEnabled(boolean enabled)
- Specified by:
setEnabled
in interface com.jme3.app.state.AppState
- Overrides:
setEnabled
in class SceneState